package edu.wpi.cs509.persistence;

import java.util.Date;

import edu.wpi.cs509.representation.UserAccount;

public class Game 
{
	private int id;
	private UserAccount redPlayer;
	private UserAccount bluePlayer;
	private UserAccount winner;
	private Date timeCompleted;
	
	public Game()
	{
		
	}
	
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public void setRedPlayer(UserAccount redPlayer) {
		this.redPlayer = redPlayer;
	}

	public void setBluePlayer(UserAccount bluePlayer) {
		this.bluePlayer = bluePlayer;
	}

	public void setWinner(UserAccount winner) {
		this.winner = winner;
	}

	public void setTimeCompleted(Date timeCompleted) {
		this.timeCompleted = timeCompleted;
	}
	
	public Game(UserAccount redPlayer, UserAccount bluePlayer, UserAccount winner, Date timeCompleted)
	{
		this.redPlayer = redPlayer;
		this.bluePlayer = bluePlayer;
		this.winner = winner;
		this.timeCompleted = timeCompleted;
	}
	
	public UserAccount getRedPlayer()
	{
		return redPlayer;
	}
	
	public UserAccount getBluePlayer()
	{
		return bluePlayer;
	}
	
	public UserAccount getWinner()
	{
		return winner;
	}
	
	public Date getTimeCompleted()
	{
		return timeCompleted;
	}
}
